<{include file="ucenter/block/header.html"}>
<div class="ucenter_t">
    <ul><li class="on">优惠券管理</li></ul>
    <span class="r"><a href="<{link ctl='ucenter/shop/coupon:create'}>" class="pbtn">添加优惠券</a></span>
</div>
<div class="ucenter_c">
    <table width="100%" border="0" cellspacing="0" class="table">
    <tr>
        <th class="w-80">ID</th><th>优惠券</th><th class="w-100">下载数</th><th class="w-150">有效期</th><th class="w-100">审核</th><th class="w-150"></th>
    </tr>
    <{foreach $items as $item}>
    <tr>
        <td class="left"><label><{$item.coupon_id}><label></td>
        <td><a href="<{link ctl='mall/coupon:detail' arg0=$item.coupon_id}>" target="_blank"><{$item.title}></a></td><td><{$item.downloads}></td><td><{$item.expire_label}></td>
        <td><{if $item.audit}><b class="blue">通过</b><{else}><b class="red">待审</b><{/if}></td>
        <td>
            <a href="<{link ctl='ucenter/shop/coupon:edit' arg0=$item.coupon_id}>" class="pbtn">修改</a>
            <a href="<{link ctl='ucenter/shop/coupon:delete' arg0=$item.coupon_id}>" mini-act="删除" mini-confirm="确定要删除吗？" class="pbtn red">删除</a>
        </td>
    </tr>
    <{foreachelse}>
     <tr><td colspan="20"><p class="tips"><span class="notice">没有数据</span></p></td></tr>
    <{/foreach}>
    <tr><td colspan="10"><div class="page"><{$pager.pagebar}></div></td></tr>
    </table>
</div>
<{include file="ucenter/block/footer.html"}>